<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("basePath", basePath);
	String baseInfoJson = (String) request.getAttribute("baseInfoJson");
	String basicInfoJson = (String) request.getAttribute("basicInfoJson");
	String respondResultJson = (String) request.getAttribute("respondResultJson");
%>
<link rel="stylesheet"
	href="${basePath}assets/bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css" />
<link rel="stylesheet"
	href="${basePath}assets/css/coding/edit_index_info.css" />
<link rel="stylesheet" href="${basePath}assets/css/basic.css" />
<link rel="stylesheet"
	href="${basePath}assets/cityselect/cityselect/cityLayout.css" />




<script type="text/javascript"
	src="${basePath}assets/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/layer/layer.js"></script>
<script type="text/javascript"
	src="${basePath}assets/cityselect/cityselect/cityselect.js"></script>
<script type="text/javascript" src="${basePath}assets/js/header.js"></script>

<script type="text/javascript" src="${basePath}assets/js/iframe.js"></script>
<script type="text/javascript"
	src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.data.js"></script>
<script src="${basePath}assets/distpicker/js/distpicker.js"></script>
<script src="${basePath}assets/distpicker/js/main.js"></script>
<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/jquery.validate.js"></script>

<script type="text/javascript"
	src="${basePath}assets/jqueryValidate/localization/messages_zh.js"></script>
<script type="text/javascript"
	src="${basePath}assets/js/coding_attached/edit_operate_infection_info.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form action="${basePath}medical_record_coding/edit_basic_info"
	method="post" id="basicInfoForm">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<table style="width:99.5%;">
		<tbody>
			<!-- <tr>
				<td colspan="6"><input type="submit" value="保存" class="btn"
					disabled="disabled"></td>
			</tr> -->
			<tr>
				<td class="tdLabel_7 redColor">住院号</td>
				<td class="tdLabel_8"><input type="text" name="onlyId"
					value="${basicInfo.onlyId }" readonly="readonly" /></td>

				<td class="tdLabel_7 redColor">病案号</td>
				<td class="tdLabel_8"><input type="text" name="mrId"
					value="${basicInfo.mrId }" readonly="readonly" /></td>
				<td class="tdLabel_7 redColor">住院次数</td>
				<td class="tdLabel_8"><input type="text" name="visitNumber"
					value="${basicInfo.visitNumber }" readonly="readonly" /></td>
			</tr>
			<tr>
				<td class="tdLabel_7 redColor">姓名</td>
				<td class="tdLabel_8"><input type="text" name="patientName"
					value="${basicInfo.patientName}" /></td>
			</tr>
			<tr>
				<td class="tdLabel_7">Ⅰ类切口是否预防性使用抗菌药物</td>
				<td class="tdLabel_8"><select name="hbsAgeResultCode"
					data-type="129Select">
				</select> <input type="hidden" name="hbsAgeResultName"></td>

				<td class="tdLabel_7">Ⅰ类切口预防性使用抗菌药物时长（天）</td>
				<td class="tdLabel_8"><input type="text" name="rescueNumber" value="${cureInfo.rescueNumber }"></td>
				<td class="tdLabel_7">术前预防性使用抗菌药物类别 </td>
				<td class="tdLabel_8"><select name="hivAbResultCode"
					data-type="operate1">
				</select> <input type="hidden" name="hivAbResultName"></td>
			</tr>
			<tr>
				<td class="tdLabel_7">术前预防性使用抗菌药物时间</td>
				<td class="tdLabel_8"><select name="hbsAgeResultCode"
					data-type="operate2">
				</select> <input type="hidden" name="hbsAgeResultName"></td>

				<td class="tdLabel_7">术中预防性追加第二剂抗菌药物原因</td>
				
				<td class="tdLabel_8">
					<select name="hivAbResultCode" data-type="operate3"></select>
					<input type="hidden" name="hivAbResultName"/>
				</td>
				<td class="tdLabel_7">术后是否预防性使用抗菌药物 </td>
				<td class="tdLabel_8"><select name="hivAbResultCode"
					data-type="129Select">
				</select> <input type="hidden" name="hivAbResultName"></td>
			</tr>
			<tr>
				<td class="tdLabel_7">术前预防性使用抗菌药物时间</td>
				<td class="tdLabel_8"><select name="hbsAgeResultCode"
					data-type="operate4">
				</select> <input type="hidden" name="hbsAgeResultName"></td>
			</tr>
			
		</tbody>
	</table>
</form>

<script>
	$(function(){
		var baseInfoJson= <%=baseInfoJson%>;
		var basicInfoJson = <%=basicInfoJson%>
		var respondResultJson = <%=respondResultJson%>
		if(respondResultJson){
			if(respondResultJson.success){
				layer.msg("保存成功",{offset: '350px'});
			}else{
				layer.msg("保存失败",{offset: '350px'});
			}
		}
		console.log(baseInfoJson);
		console.log(basicInfoJson);
		initPage(baseInfoJson,basicInfoJson);
		
	});
</script>